package com.example.springbatchdemo.config.listener;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;
import org.springframework.context.annotation.Configuration;

/**
 * @Classname listener
 * @Description TODO
 * @Date 2020/9/19 14:19
 * @Created by kevin
 */
@Configuration
public class MyJobListener implements JobExecutionListener {
    @Override
    public void beforeJob( JobExecution jobExecution ) {
        System.out.println("beforeJob......");
    }

    @Override
    public void afterJob( JobExecution jobExecution ) {
        System.out.println("afterJob......");
    }

}
